package com.savitar.common.enums;

public enum HttpStatus {
    ACCOUNT_NOT_EXIST(-20, "用户不存在"),
    USERNAME_OR_PASSWORD_ERR(-21, "用户名或密码错误"),
    NOT_LOGIN(-22, "用户尚未登陆"),
    TOKEN_EXPIRED(-23, "用户信息以过期，请重新登陆"),
    NO_JURISDICTION(-24, "权限不足，请联系管理员");


    private Integer code;
    private String desc;

    HttpStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
